/*
 * @Description: 全局状态入口
 *  
 * @Date: 2021-03-02 15:27:34
 */
import Vue from 'vue'
import Vuex from 'vuex'
import dev from './modules/dev'
import menu from './modules/menu'
import getters from './getters'
import appConstant from './modules/appConstant'
import appData from './modules/appData'

Vue.use(Vuex)
const vuex = new Vuex.Store({
	state: {},
	mutations: {},
	actions: {},
	modules: {
		dev,
		menu,
		appConstant,
		appData
	},
	getters,
	plugins: [
		// createPersistedState({
		//   storage: window.sessionStorage,
		// }),
	],
})
export default vuex
